import {COMMENT_LIST_DATA}from './actionTypes.js'
import axios from 'axios'
export const getCommentData = () =>async (dispatch)=>{
  let resp = await axios({
    method: 'get',
    url:'/json/comments.json'
  })
  dispatch({
    type: COMMENT_LIST_DATA,
    obj:resp.data
  })
}